package com.youdoneed.community.forum.dao;

import org.apache.ibatis.annotations.Mapper;

import com.youdoneed.community.forum.entity.Forumallowviewrecord;

import java.util.List;

@Mapper
public interface ForumallowviewrecordMapper {

    int deleteByPrimaryKey(String forumAllowViewRecordId);


    int insert(Forumallowviewrecord record);


    int insertSelective(Forumallowviewrecord record);


    Forumallowviewrecord selectByPrimaryKey(String forumAllowViewRecordId);

    Forumallowviewrecord selectByUserIdAndMsgId(String allowedUserId, String forumMsgId);

    List<Forumallowviewrecord> selectByMsgId(String msgId);

    int updateByPrimaryKeySelective(Forumallowviewrecord record);


    int updateByPrimaryKey(Forumallowviewrecord record);

    int deleteByMsgId(String msgId);
}